package com.yanchangapp.model.request;

import com.yanchangapp.model.bean.MailAtmentBean;
import com.yanchangapp.model.bean.MailUserBean;

import java.util.List;

/**
 * Created by apple on 2019/7/15.
 * description: 发送整个邮件的请求request
 */
public class SendTotalMailRequest {
    private List<MailUserBean> toUsers;
    private List<MailUserBean> ccUsers;
    private String subject;
    private String content;
    private List<MailAtmentBean> attachments;
    private String id = "";
    private String mailType = "";

    public SendTotalMailRequest(List<MailUserBean> toUsers,
                                List<MailUserBean> ccUsers,
                                String subject,
                                String content,
                                List<MailAtmentBean> attachments) {
        this.toUsers = toUsers;
        this.ccUsers = ccUsers;
        this.subject = subject;
        this.content = content;
        this.attachments = attachments;
    }

    public SendTotalMailRequest(List<MailUserBean> toUsers,
                                List<MailUserBean> ccUsers,
                                String subject,
                                String content,
                                List<MailAtmentBean> attachments,
                                Integer id) {
        this.toUsers = toUsers;
        this.ccUsers = ccUsers;
        this.subject = subject;
        this.content = content;
        this.attachments = attachments;
        this.id = String.valueOf(id);
        this.mailType = "1";
    }

    public List<MailUserBean> getToUsers() {
        return toUsers;
    }

    public void setToUsers(List<MailUserBean> toUsers) {
        this.toUsers = toUsers;
    }

    public List<MailUserBean> getCcUsers() {
        return ccUsers;
    }

    public void setCcUsers(List<MailUserBean> ccUsers) {
        this.ccUsers = ccUsers;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<MailAtmentBean> getAttachments() {
        return attachments;
    }

    public void setAttachments(List<MailAtmentBean> attachments) {
        this.attachments = attachments;
    }
}
